export default app => {
  const { INTEGER, DATE, DataTypes } = app.Sequelize;

  const MergeCompanyMainbusiness = app.model.define('MergeCompanyMainbusiness', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    fkCompanyId: {
      type: DataTypes.INTEGER,
      field: 'fk_company_id'
    },
    fkMainBusinessId: {
      type: DataTypes.INTEGER,
      field: 'fk_mainBusiness_id'
    },
    createdAt: DATE,
    updatedAt: DATE,
  }, {
    tableName: 'merge_company_mainbusiness'
  });
  return MergeCompanyMainbusiness;
};
